package com.woniu.liuzhougov.itemAndTask.service.impl;

import com.woniu.liuzhougov.itemAndTask.dao.UrgenryMapper;
import com.woniu.liuzhougov.itemAndTask.pojo.Urgenry;
import com.woniu.liuzhougov.itemAndTask.service.UrgencyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Transactional(rollbackFor = Exception.class)
@Service
public class UrgencyServiceImpl implements UrgencyService {

    @Autowired
    private UrgenryMapper urgenryMapper;


    /**
     * 查询所有 事项紧急情况 分类
     * @return
     */
    @Override
    public List<Urgenry> searchAllTypeOfUrgenry() {
        return urgenryMapper.searchAllTypeOfUrgenry();
    }
}
